package com.dingwei.lesyndrome.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.dingwei.lesyndrome.R;
import com.dingwei.lesyndrome.bean.GamCircleTypeBean;
import com.dingwei.lesyndrome.bean.MyNewsBean;
import com.jude.easyrecyclerview.adapter.BaseViewHolder;
import com.jude.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.lihao.baselibrary.base.BaseActivity;
import com.lihao.baselibrary.utils.ScreenUtils;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created time 2018/3/6.
 * Creator 南柯一梦丶 on
 * Personal signature 余生还长 何必慌张
 * Page description :
 */

public class CheckNewsTypeAdapter extends RecyclerArrayAdapter<GamCircleTypeBean.DataBean> {
    public CheckNewsTypeAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new CheckNewsTypeHolder(parent);
    }


    public class CheckNewsTypeHolder extends BaseViewHolder<GamCircleTypeBean.DataBean> {


        @Bind(R.id.tv_type)
        TextView tvType;

        public CheckNewsTypeHolder(ViewGroup parent) {
            super(parent, R.layout.item_check_news_type);
            ButterKnife.bind(this, itemView);


        }

        @Override
        public void setData(GamCircleTypeBean.DataBean data) {
            super.setData(data);
            tvType.setText(data.name);
        }
    }

}
